package springbootpackage;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/prop")
public class ExamplePropertiesController {

	@Value("${com.boot.name}")
	private String name;

	@Value("${com.boot.password}")
	private String password;
	
	@Value("${com.boot.nickname}")
	private String nickname;
	
	@Value("${com.boot.value}")
	private String value;
	
	@Value("${com.boot.number}")
	private int number;
	
	@Value("${com.boot.bignumber}")
	private long bignumber;

	@RequestMapping("/content")
	public String getContent() {
		//sola---123456---亢小辉---49f35b971c203ecb71a3ec1e1366732f---479173669----3854088114362154691
		return name + "---" + password + "---" + nickname + "---" + value + "---" + number + "---" + bignumber;
	}
}
